export default {
  updateLoadingStatus(state, data) {
    state.isLoading = data;
  },
  needRefreshStatus(state, data) {
    state.needRefresh = data;
  },
  SET_CURRENT_ROW(state, data) {
    state.currentRow = Object.assign({}, data)
  },
  SET_USER_INFO(state, data) {
    state.user = Object.assign({}, data.userInfo)
  },
  setDept(state, data) {
    state.deptTree = JSON.parse(JSON.stringify(data))
  },
  CHANGE_DEFAULT_POPUP(state) {
    state.defaultPop = !state.defaultPop
  },
  SET_PROJECT_INFO(state, data) {
    state.projInfo = Object.assign({}, data)
  },
  DOWNLOAD_FILE(state, data) {
    state.downloadFile = data
  },
  setBadge(state,data){
    state.badge = data
  },
  setSystemCount(state,data){
    state.systemCount = data
  },
  setTaskListCount(state,data){
    state.taskListCount = data
  },
  OFFLINE_FLIEURL(state,data){
    state.offlineflieurl=data
  },
  setDangerArr(state,data){
    state.dangerArr = data
  },
  setDailyArr(state,data){
    state.dailyArr = data
  },
  setQualityArr(state,data){
    state.qualityArr = data
  },
  setProjectFlag(state,data){
    state.projectFlag = data
  },
  setColnum(state,data){
    state.column = data
  },
  setDangerFlag(state,data){
    state.dangerFlag = data
  },
  setQualityFlag(state,data){
    state.qualityFlag = data
  },
  setDailyCheckFlag(state,data){
    state.dailyCheckFlag = data
  },
  setToken(state,data){
    state.IS_GET_TOKEN = data
  },
  setTimes(state,data){
    state.times = data
  },
  setConstructionInfoFlag(state,data){
    state.constructionInfoFlag  = data
  },
  // 设置安全统计权限
  setSafetyStatisticsFlag(state,data){
    state.safetyStatisticsFlag = data
  },
  setSQLiteDB(state, data){
    state.SQLiteDB = data
  }
}
